<?php
/**
 * JoiGallery - image gallery component for Joostina
 *
 * Менеджер плагинов
 *
 * @version 1.0 alpha 3
 * @package JoiGallery
 * @subpackage	AdminView
 * @filename plugins_list.php
 * @author JoostinaTeam
 * @copyright (C) 2008-2009 Joostina Team
 * @license see license.txt
 *
 **/
 
defined('_VALID_MOS') or die();

?>

		<table class="adminheading">
			<tr><th class="config">JoiGallery - Плагины</th></tr>
		</table>

		<form action="index2.php" method="post" name="adminForm" id="adminForm">

			<table class="adminlist" width="100%">
				<tr>
					<th width="30">&nbsp;</th>
					<th width="20"><input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count( $plugins_list );?>);" /></th>
					<th>Плагин</th>	
                    <th>Тип</th>
				</tr>
				
				<?php 
				$i = 0; 
				foreach($plugins_list as $key=>$p){
				    foreach($plugins_list[$key] as $plugin){

			            $link = 'index2.php?option='.$option.'&act=plugins&task=plugin&plugin='.$plugin.'&type='.$key;
			            $plug_name = '<a href="'.$link.'">'.$plugin.'</a>';				    
    					
    					?>
    				<tr>
    					<td><?php echo $pageNav->rowNumber( $i ); ?></td>
    					<td align="center"><?php echo mosHTML::idBox($i, $plugin); ?></td>
    					<td><?php echo $plug_name; ?></td>
                        <td> <?php echo $key; ?> </td>
    				</tr>						
    				<? $i++; } ?>
                <? $i++; } ?>
				
			</table>

			<input type="hidden" name="option" value="<?php echo $option; ?>" />
			<input type="hidden" name="act" value="configuration" />
			<input type="hidden" name="task" value="" />
			<input type="hidden" name="<?php echo josSpoofValue(); ?>" value="1" />
			<input type="hidden" name="boxchecked" value="0" />
		</form>